// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '物料领取',
        name: 'MaterialPicking',
        url: "/MaterialPicking/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"MaterialCode":"","Batch":"","Number":"","MaterialUnit":"","Picker":"","OutboundWarehouse":[],"Storagewarehouse":[],"UpdateTime":""};
    const editFormOptions = [[{"title":"物料编码","required":true,"field":"MaterialCode","readonly":true}],
                              [{"title":"批次","required":true,"field":"Batch","readonly":true}],
                              [{"title":"数量","required":true,"field":"Number"}],
                              [{"title":"物料单位","required":true,"field":"MaterialUnit"}],
                              [{"title":"领料人","required":true,"field":"Picker"}],
                              [{"dataKey":"出仓库","data":[],"title":"出库仓","required":true,"field":"OutboundWarehouse","type":"selectList"}],
                              [{"dataKey":"入库仓","data":[],"title":"入库仓","required":true,"field":"Storagewarehouse","type":"selectList"}],
                              [{"title":"更新时间","field":"UpdateTime","type":"datetime","required":true}]];
    const searchFormFields = {"MaterialCode":""};
    const searchFormOptions = [[{"title":"物料编码","field":"MaterialCode","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'MaterialCode',title:'物料编码',type:'string',width:110,require:true,align:'left'},
                       {field:'Batch',title:'批次',type:'string',width:110,require:true,align:'left'},
                       {field:'Number',title:'数量',type:'string',width:110,require:true,align:'left'},
                       {field:'MaterialUnit',title:'物料单位',type:'string',width:110,require:true,align:'left'},
                       {field:'Picker',title:'领料人',type:'string',width:110,require:true,align:'left'},
                       {field:'OutboundWarehouse',title:'出库仓',type:'string',bind:{ key:'出仓库',data:[]},width:110,require:true,align:'left'},
                       {field:'Storagewarehouse',title:'入库仓',type:'string',bind:{ key:'入库仓',data:[]},width:110,require:true,align:'left'},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}